package com.mounting.wechat.common.http;

import java.util.List;
import java.util.Map;

/**
 * 返回数据封装
 * @author : lianghanmao
 * @date : 2022/8/18
 */
public class SimpleHttpResponse {
    private boolean success;
    private int code;
    private Map<String, List<String>> headers;
    private String body;
    private String error;

    public SimpleHttpResponse() {
    }

    public SimpleHttpResponse(boolean success, int code, Map<String, List<String>> headers, String body, String error) {
        this.success = success;
        this.code = code;
        this.headers = headers;
        this.body = body;
        this.error = error;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Map<String, List<String>> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, List<String>> headers) {
        this.headers = headers;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
